package zzj.campus_book_sharing_platform.Dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import zzj.campus_book_sharing_platform.Entity.Post;
import zzj.campus_book_sharing_platform.domain.dto.PostDto;

import java.util.List;

public interface postDao extends BaseMapper<Post> {
    List<Post> queryAll();

    Post selectById(String postId);

    int insert(PostDto postDto);

    int deleteById(String postId);
}
